import React from 'react';
import { Route, IndexRoute } from 'react-router';

import App from './components/App';
import FuelSavingsPage from './containers/FuelSavingsPage';
import AboutPage from './components/AboutPage.js';
import NotFoundPage from './components/NotFoundPage.js';
import NFCPage from './components/NFCPage.js';
import LoginPage from './components/LoginPage.js';


export default (
  <Route path="/" component={App}>
    <IndexRoute component={FuelSavingsPage} />
    <Route path="about" component={AboutPage}/>
    <Route path="*" component={NotFoundPage} />
    <Route path="NFC" component={NFCPage}/>
    <Route path="login" component={LoginPage}/>
    <Route path="logout" component={LoginPage}/>
  </Route>
);
